package com.kefu.call.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kefu.call.model.ActivityBaseInfo;
import com.kefu.call.model.ActivityInventoryInfo;
import com.kefu.call.vo.ActivityInventoryInfoMySearchVo;
import com.kefu.call.vo.ActivityInventoryStatisticsVo;
import com.kefu.call.vo.ActivityUserInventoryStatisticsVo;
import com.kefu.common.mybatis.KefuMapper;

/**
 * @author francis
 * @date 2021/05/22
 */
public interface ActivityInventoryInfoMapper extends KefuMapper<ActivityInventoryInfo> {
	/**
	 *
	 * @param search
	 */
	void updateInventoryByActivityIdAndDataStatus(Map<String,Object> search);

	/**
	 *
	 * @param ids
	 * @return
	 */
	List<ActivityInventoryInfo> selectByIdList(List<String> ids);

	/**
	 * 我的任务清单
	 * @param page
	 * @param param
	 * @return
	 */
	Page<ActivityBaseInfo> myInventory(Page<ActivityBaseInfo> page, @Param("param") ActivityInventoryInfoMySearchVo param);
	
	/**
	 * 	统计外呼任务信息
	 * @param search
	 * @return
	 */
	ActivityInventoryStatisticsVo statisticsActivity(Map<String,Object> search);
	
	/**
	 * 	统计坐席外呼任务的信息
	 * @param search
	 * @return
	 */
	List<ActivityUserInventoryStatisticsVo> statisticsUserInventory(Map<String,Object> search);
}